namespace DotNetNuke.Framework
{
    using DotNetNuke.Entities.Portals;
    using System.ComponentModel;
    using System.Web.UI;

    /// -----------------------------------------------------------------------------
    /// <summary>
    /// The UserControlBase class defines a custom base class inherited by all
    /// user controls within the Portal. will allow session management on a per control
    /// later on.
    /// </summary>
    /// <remarks>
    /// </remarks>
    /// <history>
    /// </history>
    /// -----------------------------------------------------------------------------
    public class UserControlBase : UserControl
    {
        [Browsable(false), DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
        public DotNetNuke.Entities.Portals.PortalSettings PortalSettings
        {
            get
            {
                return PortalController.GetCurrentPortalSettings();
            }
        }
    }
}

